#ifndef CATEGORYLIMITDIALOG_H
#define CATEGORYLIMITDIALOG_H

#include <QDialog>
#include "other/gameStructs.h"

namespace Ui {
    class CategoryLimitDialog;
}

class CategoryLimitDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CategoryLimitDialog(QWidget *parent = 0);
    ~CategoryLimitDialog();

    CategoryDataHash getItemLimits(const CategoryDataHash& currentValue);

public slots:
    void addCategory(const GameCategory &category, const QString &key);
    void updateCategory(const QString& oldKey, const GameCategory& newCategory,
                         const QString& newKey);
    void removeCategory(const QString& key);
    void clearAll();

private:
    Ui::CategoryLimitDialog *ui;

    QHash<QString, int> keyIndex;
};

#endif // CATEGORYLIMITDIALOG_H
